package edu.nyu.hps.assignment5;

public class Point {
	int x,y,takenBy;
	boolean taken;
	Point closestStone;
	Square sq;
	public Point(int x, int y){
		this.x=x;
		this.y=y;
		taken = false;
		takenBy=-1;
		closestStone = null;
	}
	
	public double dist(Point p){
		return Math.sqrt(Math.pow((this.x-p.x), 2.0) + Math.pow((this.y-p.y), 2.0)); 
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public boolean isTaken() {
		return taken;
	}
	public void setTaken(boolean taken) {
		this.taken = taken;
	}
	
	
}
